package com.season.seasonStudy.javase.entity;

import java.util.Date;

/**
 *  这个类主要用来进行测试使用,没太多的具体含义(当然也有可能包含以后出现的子类)
 * 
 */
public class Pet {
	private int id;
	private int age;
	private String name;
	private int love;
	private int health;
	private Date born;

	public Pet() {
		super();
	}
	
	public void play(){
		System.out.println("Let's play game ");
	}
	
	public Pet(int id, int age, String name, int love, int health, Date born) {
		super();
		this.id = id;
		this.age = age;
		this.name = name;
		this.love = love;
		this.health = health;
		this.born = born;
	}

	public Pet(int id, String name) {
		super();
		this.id = id;
		this.name = name;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getLove() {
		return love;
	}

	public void setLove(int love) {
		this.love = love;
	}

	public int getHealth() {
		return health;
	}

	public void setHealth(int health) {
		this.health = health;
	}

	public Date getBorn() {
		return born;
	}

	public void setBorn(Date born) {
		this.born = born;
	}

	@Override
	public String toString() {
		return "Pet [id=" + id + ", age=" + age + ", name=" + name + ", love="
				+ love + ", health=" + health + ", born=" + born + "]";
	}


}
